package com.beirtipol.travel.activities.status;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.beirtipol.travel.activities.dom.Line;
import com.beirtipol.travel.activities.dom.LineStatus;

public class StatusManager
{
    private List<Line> preferredOrder = new ArrayList<Line>();
    private Map<Line, LineStatus> statusCache = new HashMap<Line, LineStatus>();

    public LinkedHashMap<Line, LineStatus> getCurrentStatus()
    {
	refreshIfNecessary();
	return null;
    }

    public LineStatus getCurrentStatus(Line line)
    {
	refreshIfNecessary();
	return null;
    }

    private void refreshIfNecessary()
    {
	if (statusCache.isEmpty())
	{
	    refresh();
	}
    }

    public void refresh()
    {
    };
}
